#!/usr/local/bin/lua
--
--	Chapter 03	-	Break and Return
--
--	Michael Ge
--	2014.05.17
--

print("====================")

do
	local a = {1, 2, 3, 4, 5}
	local v = 4
	local i = 1
	while a[i] do
		if a[i] == v then
			break
		end
		i = i + 1
	end
	print(i)
end

print("====================")

function foo()
	--return
	do
		return
	end
end